<style>
    .table tbody tr:last-child{
       background-color: #18bc9c;
        color: #fff;
    }
    .table tbody tr:last-child td{
        border: 1px solid #18bc9c;
    }

</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs">
            {foreach name="typeList" item="vo"}
            <li {if condition="$key eq $type"}class="active"{/if}><a href="{:url('',array("type"=>$key))}">{$vo}</a></li>
            {/foreach}
            {if condition="$userid eq 1 or $cids eq 1"}
            <li {if condition="$type eq 3"}class="active"{/if}><a href="{:url('',array("type"=>3))}">全部</a></li>

            {/if}
        </ul>

    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover "
                           data-operate-edit="{:$auth->check('store/stock/edit')}"
                           data-operate-del="{:$auth->check('store/stock/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap">
        <fieldset>
            <div class="row">
                {if condition="$userid eq 1"}

                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="department" class="control-label col-xs-4">仓库</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="cid-operate" data-name="cid" value="=" readonly="">
                        <select class="form-control"  id="cid" name="cid">
                            {foreach name="data" id="vo"}
                            <option value="{$vo.id}">{$vo.gname}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                {/if}

                <div class="form-group col-xs-12 col-sm-6 col-md-6 col-lg-6">
                    <label for="department" class="control-label col-xs-4">成品品名称</label>
                    <div class="col-xs-12 col-sm-8">
                        <input type="hidden" class="form-control operate" name="cname-operate" data-name="cname" value="=" readonly="">

                        <input data-source="ajax/shops"  data-field="cname" data-primary-key="id"
                               class="form-control selectpage  sp_input" data-rule="required" placeholder="产品名称" name="cname"  type="text" value="" autocomplete="off">        </div>
                </div>


                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>